package com.lvkerry.generate.bean;

import java.math.BigDecimal;

/**
 * @author Kerry on 18/03/07
 */

public class OrderBean {
    private String lunchDate;
    private String menuAvatarUrl;
    private Long menuId;
    private String menuName;
    private String name;
    private String orderNo;
    private Integer orderStatus;
    private Long orderTime;
    private BigDecimal price;
    private String remark;
    private Integer tableNo;
    private Long userId;
    private String username;

    public String getLunchDate() {
        return lunchDate;
    }

    public void setLunchDate(String lunchDate) {
        this.lunchDate = lunchDate;
    }

    public String getMenuAvatarUrl() {
        return menuAvatarUrl;
    }

    public void setMenuAvatarUrl(String menuAvatarUrl) {
        this.menuAvatarUrl = menuAvatarUrl;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Long getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Long orderTime) {
        this.orderTime = orderTime;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getTableNo() {
        return tableNo;
    }

    public void setTableNo(Integer tableNo) {
        this.tableNo = tableNo;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        OrderBean orderBean = (OrderBean) o;

        if (lunchDate != null ? !lunchDate.equals(orderBean.lunchDate) : orderBean.lunchDate != null) return false;
        if (menuAvatarUrl != null ? !menuAvatarUrl.equals(orderBean.menuAvatarUrl) : orderBean.menuAvatarUrl != null)
            return false;
        if (menuId != null ? !menuId.equals(orderBean.menuId) : orderBean.menuId != null) return false;
        if (menuName != null ? !menuName.equals(orderBean.menuName) : orderBean.menuName != null) return false;
        if (name != null ? !name.equals(orderBean.name) : orderBean.name != null) return false;
        if (orderNo != null ? !orderNo.equals(orderBean.orderNo) : orderBean.orderNo != null) return false;
        if (orderStatus != null ? !orderStatus.equals(orderBean.orderStatus) : orderBean.orderStatus != null)
            return false;
        if (orderTime != null ? !orderTime.equals(orderBean.orderTime) : orderBean.orderTime != null) return false;
        if (price != null ? !price.equals(orderBean.price) : orderBean.price != null) return false;
        if (remark != null ? !remark.equals(orderBean.remark) : orderBean.remark != null) return false;
        if (tableNo != null ? !tableNo.equals(orderBean.tableNo) : orderBean.tableNo != null) return false;
        if (userId != null ? !userId.equals(orderBean.userId) : orderBean.userId != null) return false;
        return username != null ? username.equals(orderBean.username) : orderBean.username == null;
    }

    @Override
    public int hashCode() {
        int result = lunchDate != null ? lunchDate.hashCode() : 0;
        result = 31 * result + (menuAvatarUrl != null ? menuAvatarUrl.hashCode() : 0);
        result = 31 * result + (menuId != null ? menuId.hashCode() : 0);
        result = 31 * result + (menuName != null ? menuName.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (orderNo != null ? orderNo.hashCode() : 0);
        result = 31 * result + (orderStatus != null ? orderStatus.hashCode() : 0);
        result = 31 * result + (orderTime != null ? orderTime.hashCode() : 0);
        result = 31 * result + (price != null ? price.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        result = 31 * result + (tableNo != null ? tableNo.hashCode() : 0);
        result = 31 * result + (userId != null ? userId.hashCode() : 0);
        result = 31 * result + (username != null ? username.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "OrderBean{" +
                "lunchDate='" + lunchDate + '\'' +
                ", menuAvatarUrl='" + menuAvatarUrl + '\'' +
                ", menuId=" + menuId +
                ", menuName='" + menuName + '\'' +
                ", name='" + name + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", orderStatus=" + orderStatus +
                ", orderTime=" + orderTime +
                ", price=" + price +
                ", remark='" + remark + '\'' +
                ", tableNo=" + tableNo +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                '}';
    }
}

